package com.cheng;

import com.baomidou.mybatisplus.mapper.Condition;
import com.cheng.controller.TiebaController;
import com.cheng.mapper.TiebaMapper;
import com.cheng.mybatisutils.DBFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;

import javax.annotation.Resource;
import java.util.List;

@SpringBootApplication
//设置开启定时任务
@EnableScheduling
public class SignerApplication {

    public static void main(String[] args) {
        SpringApplication.run(SignerApplication.class, args);
        DBFactory dbFactory = new DBFactory(DBFactory.SIGN);
        List list = dbFactory.getMapper(TiebaMapper.class).selectList(Condition.create());
    }

}
